<%@ page import="java.util.*" %><%--
  Created by IntelliJ IDEA.
  User: hp
  Date: 2020/11/12
  Time: 16:56
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%pageContext.setAttribute("key","values");%>
<%pageContext.setAttribute("key1","values1");%>
<%--<%List<String> list = Arrays.asList("ddd","wwww");%>--%>
<%List<String> list =new ArrayList<>();%>
<%pageContext.setAttribute("list",list);%>
<%list.add("www");%>
${list}
<%list.add("ddddddddd");%><br/>
${list}<br/>
map:
<%Map map = new HashMap();%>
<%pageContext.setAttribute("map",map);%>
${empty map}
<%map.put("ddd","dd");%><br/>
${empty map}<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>
${equestScope.book.id}

${empty requestScope.book.id?"add":"update"}
</body>
</html>
